﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace DispatchAssist.BusinessLogical.Model
{
    /// <summary>
    /// InfoAirport
    /// </summary>
    public class InfoAirport
    {

        /// <summary>
        /// InfoAirport 构造函数
        /// </summary>
        public InfoAirport()
        { }

        /// <summary>
        /// InfoAirport OR映射构造函数
        /// </summary>
        public InfoAirport(System.Data.IDataReader dr)
        {
            this.Code4 = Convert.ToString(dr["Code4"]);
            this.Code3 = Convert.ToString(dr["Code3"]);
            this.ShortName = Convert.ToString(dr["ShortName"]);
            this.FullName = Convert.ToString(dr["FullName"]);
        }

        /// <summary>
        /// 机场四字码
        /// </summary>
        public string Code4 { get; set; }

        /// <summary>
        /// 机场三字码
        /// </summary>
        public string Code3 { get; set; }

        /// <summary>
        /// 机场简称
        /// </summary>
        public string ShortName { get; set; }

        /// <summary>
        /// 机场全名
        /// </summary>
        public string FullName { get; set; }

        public override string ToString()
        {
            return string.Format("[机场三字码：{0},机场简称：{1},机场全名：{2}]", Code3, ShortName, FullName);
        }
    }
}